<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>新增模块类型</title>

<link href="${pageContext.request.contextPath }/admin/login/css/mainstyle.css" rel="stylesheet" type="text/css" />
<link href="${pageContext.request.contextPath }/admin/login/css/common.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${pageContext.request.contextPath }/admin/login/js/common.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/script/jquery.js"></script>
<script type="text/javascript">
	function addModuleTypeFun(){
		if($("#type_name").val()==null||$.trim($("#type_name").val())==''){
			alert("模块名不能为空！");
			return false;
		}		
		$("#moduleTypeForm").submit();
	}
</script>
</head>
<body>
  <div class="rrcc" id="RightBox">
    <div class="right" id="li010">
      <div class="right01"><img src="${pageContext.request.contextPath }/admin/login/images/main/04.gif" /> 模块类型管理 &gt; <span>新增模块类型</span></div>
      
      <div class="primary">
        <table>
          <tr>
            <th>新增模块类型</th>
            <th></th>
          </tr>
        </table>
        <br/>
        
        <form action="${pageContext.request.contextPath }/admin/moduletype/moduleTypeAdd.do?m=add" 
          method="post" name="moduleTypeForm" id="moduleTypeForm">
        <table>
          <tr>
            <td width="80px" align="right">模块名:</td>
            <td>
              <input type="text" name="type_name" id="type_name"/>
            </td>
            <td><font color="red">*</font></td>
            <td id="typeNameCol"></td>
          </tr>
          <tr height="5px"><td></td><td></td><td></td></tr>
          <tr>
            <td width="80px" align="right">模块状态:</td>
            <td>
              <select name="status">
                <option value="1">可用</option>
                <option value="0">不可用</option>
              </select>
            </td>
            <td><font color="red">*</font></td>
            <td></td>
          </tr>
          
          <tr height="15px"><td></td><td></td><td></td></tr>
          <tr>
            <td></td>
            <td></td>
            <td></td>
          </tr>
          <tr>
            <td></td>
            <td>
              <input type="button" value="添加" onclick="addModuleTypeFun()" />
            </td>
            <td></td>
          </tr>
        </table>
        </form>
      </div>
      
    </div>
  </div>
</body>
</html>